package BehaviorModel.interpreterModel;

import java.util.HashMap;

public class InterpreterClientTest {
    public static void main(String[] args) {
        String expStr = "a+b-c+d";
        int result = new Calculator(expStr).run(new HashMap<String, Integer>() {{
            put("a", 1);
            put("b", 2);
            put("c", 3);
            put("d", 4);
        }});

        System.out.println(String.format("result:%d", result));

    }
}
